package cm.cool.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cm.cool.web.bean.Admin;
import cm.cool.web.service.AdminService;


@RestController
@RequestMapping("/Admin")
public class AdminContrller {
	
	@Autowired
	private AdminService service;
	
	@RequestMapping("insert")
	public String insert(Admin admin){
		service.insert(admin);
		return "123";
	}
}
